setAlwaysOnTop

abstract fun setAlwaysOnTop(block: DesignBlock, enabled: Boolean)

Update the block's always-on-top property. If true, this blocks's global sorting order is automatically adjusted to be higher than all other siblings without this property. If more than one block is set to be always-on-top, the child order decides which is on top.

Parameters

block

the block to update.

enabled

whether the block shall be always-on-top.